async function foo() {
  try {
    await xxxx()
    // rxxxxx
  } catch (error) {
    console.log(error);
  }
}

console.log(foo());